By using the NamingConvention defined in ConventionFirstDiamantDaoContext<ConventionFirstDiamantDaoContext(string, NamingConvention, NamingConvention) this method infers the table data schema in accordance with TEntity characteristics and creates the TableMappings required to synthesize create, read, update and delete SQL statements.

An affinity between data schema and TEntity structure is necessary for this class to correctly work, for example, if snake casing is used as naming convention, and the entity class is SomeEntity with string properties FirstProperty and SecondProperty, a table called some_entity with character based columns first_column and second_column must exists in the underlying data store.

Namespace: Keystone.Carbonite.Diamant
Assembly: Keystone.Carbonite.Diamant (in Keystone.Carbonite.Diamant.dll)

public TableMappings GetMappings()
This language is not supported or no code example is available.

Return Value

TableMappings.

Windows, Windows Server, OS X, macOS, iOS, tvOS, Android, Linux, AWS, Azure

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 4.6

Others

Xamarin, Mono